package cn.edu.scnu.socialapp.dao.mapper;


import cn.edu.scnu.socialapp.model.entity.Message;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MessageMapper extends BaseMapper<Message> {
    List<Message> findBySenderIdAndReceiverIdOrderByTimestampAsc(@Param("senderId") Long senderId, @Param("receiverId") Long receiverId);
}


